package com.atguigu.spring6.di_test;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

public class test_arraydi {
    @Test
    public void test() {
        ApplicationContext context = new ClassPathXmlApplicationContext("array_ditest.xml");
        Emp emp = (Emp) context.getBean("emp");
        System.out.println(Arrays.toString(emp.getLoves()));
    }
}
